<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑页面</title>
    <link rel="stylesheet" href="${request.contextPath}/plugins/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="${request.contextPath}/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${request.contextPath}/plugins/select2/select2.min.css">
    <link rel="stylesheet" href="${request.contextPath}/plugins/jquery-confirm/jquery-confirm.min.css">
    <link rel="stylesheet" href="${request.contextPath}/plugins/fancybox/jquery.fancybox.css">
    <link rel="stylesheet" href="${request.contextPath}/hadmin/css/animate.css">
    <link rel="stylesheet" href="${request.contextPath}/hadmin/css/style.css">
    <link rel="stylesheet" href="${request.contextPath}/hadmin/css/common.css">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="authEditForm">
                        <input type="hidden" value="${(entity.userId)}" name="userId"/>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">用户名称：</label>
                            <div class="col-sm-9">
                                <input value="${(entity.userName)!}" type="text"
                                       class="form-control" placeholder="请输入用户ID" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">身份证号码：</label>
                            <div class="col-sm-9">
                                <input value="${(entity.idCard)!}" type="text"
                                       class="form-control" placeholder="请输入身份证号码" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">所在城市：</label>
                            <div class="col-sm-9">
                                <input value="${(entity.cityName)!}" type="text"
                                       class="form-control" placeholder="请输入城市名称" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">身份证正面：</label>
                            <div class="col-sm-9">
                                <a class="fancybox" href="${(entity.frontPic)!}" title="身份证正面">'
                                    <img alt="image" src="${(entity.frontPic)!}" style="width:100px; height:100px;"/>'
                                </a>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">身份证反面：</label>
                            <div class="col-sm-9">
                                <a class="fancybox" href="${(entity.backPic)!}" title="身份证反面">'
                                    <img alt="image" src="${(entity.backPic)!}" style="width:100px; height:100px;"/>'
                                </a>
                            </div>
                        </div>
                        <#if entity.authStatus == 3>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">认证状态：</label>
                            <div class="col-sm-9">
                                <p class="form-control-static"><span style="color: green;">认证成功</span></p>
                            </div>
                        </div>
                        <#elseif entity.authStatus == 2>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">认证状态：</label>
                            <div class="col-sm-9">
                                <p class="form-control-static"><span style="color: red;">认证失败</span></p>
                            </div>
                        </div>
                        <#else>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">认证审核：</label>
                            <div class="col-sm-9">
                                <label class="radio-inline">
                                    <input name="authStatus" class="minimal" type="radio" ${(entity.authStatus==1)?string('checked','')} value="1" required> 认证中
                                </label>
                                <label class="radio-inline">
                                    <input name="authStatus" class="minimal" type="radio" ${(entity.authStatus==3)?string('checked','')} value="3" required> 认证成功
                                </label>
                                <label class="radio-inline">
                                    <input name="authStatus" class="minimal" type="radio" ${(entity.authStatus==2)?string('checked','')} value="2" required> 认证失败
                                </label>
                            </div>
                        </div>
                        </#if>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 通用js引入 -->
<script src="${request.contextPath}/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="${request.contextPath}/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="${request.contextPath}/plugins/select2/select2.full.min.js"></script>
<script src="${request.contextPath}/plugins/layer/layer.min.js"></script>
<script src="${request.contextPath}/plugins/laydate/laydate.js"></script>
<script src="${request.contextPath}/plugins/jquery-confirm/jquery-confirm.min.js"></script>
<script src="${request.contextPath}/plugins/validate/jquery.validate.min.js"></script>
<script src="${request.contextPath}/plugins/validate/messages_zh.min.js"></script>
<script src="${request.contextPath}/plugins/blockUI/jquery.blockUI.js"></script>
<script src="${request.contextPath}/plugins/fancybox/jquery.fancybox.js"></script>
<script src="${request.contextPath}/hadmin/js/content.js"></script>
<script src="${request.contextPath}/hadmin/js/common.js?v=0.9"></script>
<script>
    $(document).ready(function () {
        $('.fancybox').fancybox({
            openEffect: 'none',
            closeEffect: 'none'
        });
    });
    // 提交保存
    function submitHandler() {
        if ($("#authEditForm").validate().form()) {
            saveInfo('${request.contextPath}/knowledge/auth/doAuth', $('#authEditForm').serialize());
        }
    }
</script>
</body>
</html>
